# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb-compat
pkgver=0.1.8
pkgrel=2
pkgdesc="Compatility for older libusb"
url="https://libusb.info/"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev"
depends="libusb"
makedepends="autoconf automake linux-headers libtool libusb-dev"
source="https://github.com/libusb/libusb-compat-0.1/releases/download/v$pkgver/libusb-compat-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0f935b89d06a8ffd6c87b03d649b1136a0f84110874d1b8d071a0af922b9b2f911143670fc9297309053f29ba02e1714fa4f4bdd8b71c26dbaf32146699fcf34  libusb-compat-0.1.8.tar.gz
"
